<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>容器</title>
    <base href="<%= webpackConfig.output.publicPath %>">
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script>
       function loadScript() {
        if(window.location.href.indexOf('web-console')>-1){
          const scriptList = [
            "<%= webpackConfig.output.publicPath %>console/jquery-1.8.3.min.js",
            "<%= webpackConfig.output.publicPath %>console/jquery-ui.min.js",
            "<%= webpackConfig.output.publicPath %>console/wmks.min.js"
          ]
          const linkList = [
            "<%= webpackConfig.output.publicPath %>console/wmks-all.css"
          ]
          for(src of scriptList){
            let script = document.createElement("script");
            script.type = "text/javascript"
            script.src = src;
            document.getElementsByTagName('head')[0].appendChild(script);
          }
          for(src of linkList){
            let script = document.createElement("link");
            script.rel = "stylesheet"
            script.href = src;
            document.getElementsByTagName('head')[0].appendChild(script);
          }
        }

      }
      // loadScript()
    </script>
  </body>
</html>
